const KoaRouter = require("@koa/router");
const { multerUploadFile } = require("../../middleware/file.middleware");
const fileController = require("../../controller/file.controller");
const fileRouter = new KoaRouter({ prefix: "/file" });

fileRouter.post("/upload", multerUploadFile, fileController.uploadFile);

module.exports = fileRouter;
